﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/RopaOnline.Master" AutoEventWireup="true"
	CodeBehind="StreetTypeSearch.aspx.cs" Inherits="Upsam.RopaOnline.Web.StreetTypeSearch" %>

<asp:Content ID="cntHead" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="cntContext" ContentPlaceHolderID="cphContext" runat="server">
	<div>
		<div style="width: 98%; float: left; border: solid 1px #000; margin-top: 10px;">
			<div style="width: 98%; float: left; margin-top: 10px;">
				<div style="width: 48%; float: left; padding-left: 10px;">
					<asp:Label ID="lblStreetTypeName" runat="server" Text="Tipo de Calle" AssociatedControlID="txtStreetTypeName"></asp:Label>
				</div>
				<div style="width: 48%; float: left; padding-left: 10px;">
					<asp:TextBox ID="txtStreetTypeName" runat="server" Width="98%"></asp:TextBox>
				</div>
			</div>
			<div style="width: 98%; float: left; margin-top: 10px; text-align: center; margin-bottom: 10px;">
				<asp:Button ID="btnSearch" runat="server" Text="Buscar" OnClick="btnSearch_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
				<asp:Button ID="btnAdd" runat="server" Text="Agregar" OnClick="btnAdd_Click" />
			</div>
		</div>
		<div style="width: 98%; float: left; border: solid 1px #000; height: auto; margin-top: 10px;">
			<asp:GridView ID="grvStreetType" runat="server" AllowPaging="True" AllowSorting="True"
				BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px"
				CellPadding="3" AutoGenerateColumns="False" DataSourceID="ldsStreetType" GridLines="Horizontal">
				<RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
				<Columns>
					<asp:CommandField ShowDeleteButton="True" DeleteText="Borrar" />
					<asp:ButtonField ButtonType="Link" CommandName="EditItem" CausesValidation="false"
						Text="Editar" />
					<asp:BoundField ConvertEmptyStringToNull="False" DataField="IdTipoCalle" HeaderText="IdTipoCalle"
						InsertVisible="False">
						<HeaderStyle CssClass="oculto" />
						<ItemStyle CssClass="oculto" />
					</asp:BoundField>
					<asp:BoundField ConvertEmptyStringToNull="False" HeaderText="Tipo de Calle" InsertVisible="False"
						DataField="TipoCalle1" />
				</Columns>
				<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
				<PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
				<SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
				<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
				<AlternatingRowStyle BackColor="#F7F7F7" />
			</asp:GridView>
		</div>
	</div>
	<asp:LinqDataSource ID="ldsStreetType" runat="server" ContextTypeName="Upsam.RopaOnline.Modelo.Data.RopaOnLineDataContext"
		EnableDelete="True" TableName="TipoCalles" Where="TipoCalle1.Contains(@TipoCalle1)">
		<WhereParameters>
			<asp:Parameter DefaultValue="0" ConvertEmptyStringToNull="false" Name="TipoCalle1" Type="String" />
		</WhereParameters>
	</asp:LinqDataSource>
</asp:Content>
